package weekfive;

public class arrray2 {
	public static void main(String[] args) {
		int a[][]=new int[2][];
		a[0]=new int[2];
		a[0][0]=1;
		a[0][1]=3;
		a[1]=new int [] {2,4,6,8};
		for(int i=0;i<a.length;i++) {
			for(int j=0;j<a[i].length;j++) {
				System.out.print("a["+i+"]["+j+"]="+a[i][j]+" ");
			}
			System.out.println();
		}
		System.out.println("----------------------------------------");
		int b[][]= {{1,2,3},{8,9,10,11,12}};
		for(int i=0;i<b.length;i++){
			for(int j=0;j<b[i].length;j++) {
				System.out.print("b["+i+"]["+j+"]="+b[i][j]+" ");
			}
			System.out.println();
		}
	}
}
